package lean;
import java.util.Scanner;
public class test {
    public static void main(String[] args){
        //控制台输入路程
        Scanner sc=new Scanner(System.in);
        System.out.println("输入路程:");
        //接受输入的路程的值
        int car=sc.nextInt();
        //开始判断路程的值
        if(car<=2){
            System.out.println("起步价为7元");
        }else{
            int count;
            int car1=car-2;
            count=(car1*3)+7;
            System.out.println("费用为:"+count);
        }
    }
}
